package com.google.service;

import com.google.logic.PayLogic;
import org.springframework.web.bind.annotation.*;

import javax.annotation.Resource;

@RestController
public class PayService {

    @Resource
    private  PayLogic payLogic;

    @RequestMapping(value = "/users/{username}",method = RequestMethod.GET,consumes="text/html")
    public String getUser(@PathVariable String username){
        return "Welcome,"+username;
    }

    @RequestMapping(value = "/users/{pwd}",method = RequestMethod.GET,consumes="text/html")
    public String getUser02(@RequestParam String pwd){
        return "Welcome,"+pwd;
    }
}
